const target = 'https://test.com'
const headers = {
    'Cookie': ""
}
const proxyConfig = {
    /**
     * 需要代理的html页面地址(托管的静态资源地址)，比如html/index.html
     * */
    staticPath: 'D:\\desktopFile\\html',
    /**
     * port-服务启动的端口
     */
    port: 5000,
    /**
     * 代理配置-配置方式同webpack devServer.proxy
     */
    proxy:{
        '/api': {
            target: target,
            changeOrigin: true,
            ws: true,
            headers,
            pathRewrite: {}
        }
    }
}
for(let key in proxyConfig.proxy){
    proxyConfig.proxy[key].target += key
}
module.exports = proxyConfig